cmake_minimum_required(VERSION 3.26)
project(boost_example)

set(CMAKE_CXX_STANDARD 11)
set(boostlib filesystem program_options regex)
#
find_package(Boost REQUIRED COMPONENTS ${boostlib})

add_executable(boost_example boost_test.cpp)
if(Boost_FOUND)
    message(STATUS "Boost version found")
    message(STATUS " Boost libraries:${Boost_LIBRARIES}")
    target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES})
else()
    message(STATUS "Boost version not found")
endif()
